# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=epson-inkjet-printer-escpr
pkgver=1.7.18
pkgrel=0
pkgdesc="Epson Inkjet Printer Driver (ESC/P-R) for Linux"
url="https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
arch="all"
license="GPL-2.0-or-later"
depends="cups-filters"
makedepends="cups-dev"
source="$pkgname-$pkgver.tar.gz::https://download3.ebz.epson.net/dsc/f/03/00/13/43/81/cbdd80826424935cef20d16be8ee5851388977a7/epson-inkjet-printer-escpr-$pkgver-1lsb3.2.tar.gz"
options="!check" # no test suite provided

prepare() {
	default_prepare

	update_config_guess
}

build() {
	./configure \
		--disable-static \
		--prefix=/usr \
		--with-cupsfilterdir=/usr/lib/cups/filter \
		--with-cupsppddir=/usr/share/ppd
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
120d1a9415e85032016b1c045e569f4f4864bf464b7106a2ab5fe37681ff696bdf80c791a304b166e21f27eb9c64aab2efabdf821d5529d4b37557e1dbbe8761  epson-inkjet-printer-escpr-1.7.18.tar.gz
"
